'use strict';

app.service('HeaderSearchService', 
	['$http', '$injector', 'dialogs','$rootScope', 
    function($http, $injector, dialogs, $rootScope) {
	var that = this;
	
	this.getTree = function(){
		return $http.post(ISS.getPath('/map/getHeaderLocations')).then(function(resp){
			return resp.data;
		});
	}
	this.searchLocation = function(param){
        return $http.post(ISS.getPath('/EssMap/searchLocation'), param, {contentType: 'json'}).then(function (resp) {
			return resp.data;
		});
	}
}]);
